home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / Include / ds3100.md / kbdMapMach.h < prev    next >
C/C++ Source or Header  |  1989-07-08  |  2KB  |  96 lines

  1. /*
  2.  * kbdMapMach.h --
  3.  *
  4.  *    Hardware-dependent declarations of data structures to 
  5.  *    map raw keyboard input to ASCII characters.
  6.  *
  7.  * Copyright 1986,1988 Regents of the University of California
  8.  * Permission to use, copy, modify, and distribute this
  9.  * software and its documentation for any purpose and without
  10.  * fee is hereby granted, provided that the above copyright
  11.  * notice appear in all copies.  The University of California
  12.  * makes no representations about the suitability of this
  13.  * software for any purpose.  It is provided "as is" without
  14.  * express or implied warranty.
  15.  *
  16.  * $Header: kbdMapMach.h,v 1.2 89/04/20 20:06:06 mnelson Exp $ SPRITE (Berkeley)
  17.  */
  18.  
  19. #ifndef _KBDMAPMACH
  20. #define _KBDMAPMACH
  21.  
  22. /* constants */
  23.  
  24. /*
  25.  * Ascii values of command keys.
  26.  */
  27.  
  28. #define KBD_ESC        27
  29. #define KBD_TAB        '\t'
  30. #define KBD_DEL        127
  31. #define KBD_BACKSP    '\b'
  32. #define KBD_RET        '\r'
  33. #define KBD_LF        '\n'
  34.  
  35. /*
  36.  *  Define "hardware-independent" codes for the control, shift, meta and 
  37.  *  function keys.  Codes start after the last 7-bit ASCII code (0x7F) 
  38.  *  and are assigned in an arbitrary order.
  39.  */
  40.  
  41. #define KBD_NOKEY    128
  42. #define KBD_UNKNOWN    129
  43.  
  44. #define KBD_F1        201
  45. #define KBD_F2        202
  46. #define KBD_F3        203
  47. #define KBD_F4        204
  48. #define KBD_F5        205
  49. #define KBD_F6        206
  50. #define KBD_F7        207
  51. #define KBD_F8        208
  52. #define KBD_F9        209
  53. #define KBD_F10        210
  54. #define KBD_F11        211
  55. #define KBD_F12        212
  56. #define KBD_F13        213
  57. #define KBD_F14        214
  58. #define KBD_HELP    215
  59. #define KBD_DO        216
  60. #define KBD_F17        217
  61. #define KBD_F18        218
  62. #define KBD_F19        219
  63. #define KBD_F20        220
  64.  
  65. #define KBD_FIND    221
  66. #define KBD_INSERT    222
  67. #define KBD_REMOVE    223
  68. #define KBD_SELECT    224
  69. #define KBD_PREVIOUS    225
  70. #define KBD_NEXT    226
  71.  
  72. #define KBD_KP_ENTER    227
  73. #define KBD_KP_F1    228
  74. #define KBD_KP_F2    229
  75. #define KBD_KP_F3    230
  76. #define KBD_KP_F4    231
  77. #define KBD_LEFT    232
  78. #define KBD_RIGHT    233
  79. #define KBD_DOWN    234
  80. #define KBD_UP        235
  81.  
  82. #define KBD_CONTROL    236
  83. #define KBD_SHIFT    237
  84. #define KBD_CAPSLOCK    238
  85. #define KBD_ALTERNATE    239
  86.  
  87. #define KBD_MAX_VALUE    KBD_ALTERNATE
  88.  
  89. #define KBD_SPECIAL    KBD_CONTROL
  90.  
  91.  
  92. extern unsigned short    devKbdPmaxToShiftedAscii[];
  93. extern unsigned short    devKbdPmaxToUnshiftedAscii[];
  94.  
  95. #endif _KBDMAPMACH
  96.